home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Applications / Python 1.3.3 / Python 133 SRC / Mac / Modules / menu / menuedit.py next >
Text File  |  1995-06-18  |  285b  |  14 lines

  1. f = Function(void, 'OpenDeskAcc',
  2.     (Str255, 'name', InMode),
  3. )
  4. functions.append(f)
  5.  
  6. as_resource_body = """
  7. return ResObj_New((Handle)_self->ob_itself);
  8. """
  9.  
  10. f = ManualGenerator("as_Resource", as_resource_body)
  11. f.docstring = lambda : "Return this Menu as a Resource"
  12.  
  13. methods.append(f)
  14.